import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {StoreComponent} from "./manage/store/store.component";
import {UseComponent} from "./manage/use/use.component";
import {BookComponent} from "./control/book/book.component";
import {HistoryComponent} from "./control/history/history.component";
import {DetailComponent} from "./control/detail/detail.component";
import {AllComponent} from "./manage/all/all.component";
import {TurnComponent} from "./control/form/form.component";

export const ROUTES: Routes = [
  { path: '', component: UseComponent },
  { path: 'book', component: BookComponent },
  { path: 'history', component: HistoryComponent },
  { path: 'store', component: StoreComponent },
  { path: 'detail', component: DetailComponent },
  { path: 'all', component: AllComponent },
  { path: 'form', component: TurnComponent },
  { path: 'use', component: UseComponent }
];

@NgModule({
  imports: [
    RouterModule.forRoot(ROUTES)
  ],
  exports: [
    RouterModule
  ],
})
export class AppRoutingModule {}
